Writes the file contents to a specified file
HRESULT WriteContentsTo(BSTR fileName);
WriteContentsTo(String fileName);
Sub WriteContentsTo(fileName As String)
Parameters |
Description |
[in] BSTR fileName |
The complete path and name of the file. If the file already exists it will be overwritten. |
This method creates a copy of the captured file. After you are finished with the file you are responsible for deleting it from the disk if appropriate. adTempus retains a separate copy of the file.
After you have used the WriteContentsTo method you should call the ReleaseContents method to free the memory required by the file contents. Otherwise the contents remain in memory until the CapturedFile object is uncached.
The file name you specify is relative to the client, not the server (the contents are streamed from the server to the client, then written to the file).
adTempus API Reference version 3.0.0.0, revised 10/30/2008
|